package com.sfac.hqyj.springBoot.modules.test.service;


import com.sfac.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.sfac.hqyj.springBoot.modules.common.entity.SearchBean;
import com.sfac.hqyj.springBoot.modules.test.entity.Student;
import org.springframework.data.domain.Page;

public interface StudentService {
    ResultEntity<Student> insertStudent(Student student);

    ResultEntity<Student> updateStudent(Student student);

    ResultEntity<Object> deleteStudent(int id);

    Student getStudentById(int id);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

    Student findByStudentName(String studentName);
}
